package com.springboot_blog.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;
import lombok.Data;



/**
 * 用户更新数据传输对象
 */
@Data
@Schema(description = "用户更新数据传输对象")
public class UserUpdateDTO {


    @Schema(description = "昵称", example = "管理员")
    @Size(max = 50, message = "昵称长度不能超过50个字符")
    private String nickname;

    @Schema(description = "邮箱", example = "admin@example.com")
    @Email(message = "邮箱格式不正确")
    private String email;

    @Schema(description = "头像URL", example = "https://example.com/avatar.jpg")
    private String avatar;

    @Schema(description = "角色ID", example = "1")
    private Long roleId;

    @Schema(description = "状态：1-正常，0-禁用", example = "1")
    private Integer status;
}